import React from 'react';
import ChildComponent from './ChildComponent';

const ParentComponent = () => {
  const message = "Hello from Parent!";
  const user = { name: "John", age: 25 };

  return (
    <div>
      <h1>Parent Component</h1>
      <ChildComponent 
        message={message} 
        user={user} 
        onButtonClick={() => alert("Button clicked in Parent!")}
      />
    </div>
  );
};

export default ParentComponent;